#ifndef ONNXRECOGNIZETASK_H
#define ONNXRECOGNIZETASK_H

#include <QMutex>
#include "task.h"
#include <QMap>
#include <QVariant>
#include "../view/cameraviewwidget.h"
#include "../signal/mysignal.h"

class OnnxRecognizeTask : public Task
{
    Q_OBJECT
public:
    OnnxRecognizeTask();

    void SetParameters(QMap<QString,QVariant> params){
        parameters = params;
    }

private:
    QMap<QString,QVariant> parameters;

signals:
    void finishRecognizeImage(int index);

public:
    static QMutex mutex;

protected:
    void run() override;
};

#endif // ONNXRECOGNIZETASK_H
